package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description: 点检类别
 * @Author: wxy
 * @Date:   2021-09-15
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_CHECK_CATEGORY")
@Schema(description="点检类别")
public class EquipmentCheckCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;
	/**类别名称*/
    @Column(name = "NAME_")
    @Schema(description = "类别名称")
    private String name;
	/**类别编码*/
    @Column(name = "CODE_")
    @Schema(description = "类别编码")
    private String code;
	/**是否有效*/
    @Dict(dicCode = "ERP_COMMON_YESNO")
    @Column(name = "IS_ENABLE_")
    @Schema(description = "是否有效")
    private Integer isEnable;

	/**租户*/
    @Column(name = "TENANT_ID_")
    @Schema(description = "租户")
    private String tenantId;

}
